POV-Ray : Newsgroups : povray.advanced-users : Yet another tricky light : Yet another tricky light Server Time
3 Jul 2024 05:28:40 EDT (-0400)
  Yet another tricky light  
From: Woody
Date: 7 Jul 2008 14:15:01
Message: <web.48725cdab2e4562049b4acd50@news.povray.org>
Have another question regarding creating a shaped light. Let's say I have the
following simple scen

box{ -1, 1 scale 100 scale z/100000 translate z*-10 pigment{color Red}
finish{ambient 0}}
sphere{0,1 }
light_souce{ z*10 spotlight point_at z*-10 radius 30 falloff 30}

How do do I create a scene with a light source against the box with the shadow
of the sphere but without the sphere actually being in the scene. I though of
using a light_group and difference like

difference{
    light_group{
        box{ -1, 1 scale 100 scale z/100000 translate z*-10 pigment{color Red}
finish{ambient 0}}
        sphere{0,1 }
        light_souce{ z*10 spotlight point_at z*-10 radius 30 falloff 30}

    }
    light_group{
        sphere{0,1 }
    }
}

or even instead of a second light_group just using a sphere for the difference

difference{
    light_group{
        box{ -1, 1 scale 100 scale z/100000 translate z*-10 pigment{color Red}
finish{ambient 0}}
        sphere{0,1 }
        light_souce{ z*10 spotlight point_at z*-10 radius 30 falloff 30}

    }
    sphere{0,1 }
}


nothing seems to work though.

Any thoughts?


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.